package ase.assignment.sts.api;

import java.rmi.Remote;
import java.rmi.RemoteException;

import ase.assignment.sts.beans.StockAssertEntity;
import ase.assignment.sts.beans.StockQuoteEntity;

public interface StockHandler extends Remote {
	void create(StockAssertEntity stock) throws RemoteException;

	void delete(int stockId) throws RemoteException;

	void update(StockAssertEntity stock) throws RemoteException;

	StockAssertEntity findById(int stockId) throws RemoteException;

	StockAssertEntity[] getAllStocks(int porId) throws RemoteException;

	StockQuoteEntity getCurrentPrice(int stockId) throws RemoteException;
}
